package com.zhia.demo.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.zhia.demo.entity.NovelEntity;
import com.zhia.demo.vo.*;

import java.util.List;


/**
 * @author DONG
 * @create 2023/10/24 18:05
 */
public interface NovelService extends IService<NovelEntity> {
    PageResultVo PageInfo(String cont, Integer page);

    BookVo getBookById(String id);

    ContentVo getBookContent(Integer chapter);

    List<NovelEntity> getBooksByUserId(Integer id);

    ResultVo saveBook(AddRequestVo requestVo, int userId);

    ResultVo updateBook(String id,AddRequestVo requestVo);

    void hotAddById(String id);

}
